<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>借货信息统计</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/style/style.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/style/appAdmin/bootstrap.css" />
	<link rel="stylesheet" href="${pageContext.request.contextPath}/style/appAdmin/bootstrap-responsive.css" />
</head>
<body>
<div class="mCon">
<div class="main_list">
      <table class="table table-bordered table-hover table-striped">
        <tr class="main_title main_title2">
          <td>日期</td>
          <td>凭证字号</td>
          <td>摘要</td>
          <td>业务编号</td>
          <td>借方本位币金额</td>
          
          <td>贷方本位币金额</td>
          <td>余额方向</td>
          <td>本位币余额</td>

        </tr>
        <c:if test="${empty list}">
        <tr><td colspan="8" align="center">暂无数据！</td></tr>
        </c:if>
        <c:if test="${!empty list}">
        <c:forEach items="${list}" var="one">
        
          <c:if test="${!empty one['jdEntity']}">
          <tr class="main_td">
          <c:set var="jdEntity" value="${one['jdEntity']}"></c:set>
          	<td>${jdEntity.jdDate}</td>
          	<td>${jdEntity.jdKey}</td>
          	<td>${jdEntity.jdDesc}</td>
          	<td>${jdEntity.jdCode}</td>
          	<td><fmt:formatNumber pattern="0.0">${jdEntity.jdAmountJie}</fmt:formatNumber></td>
          	<td><fmt:formatNumber pattern="0.0">${jdEntity.jdAmountDai}</fmt:formatNumber></td>
          	<td>${jdEntity.jdTypeStr}</td>
          	<td><fmt:formatNumber pattern="0.0">${jdEntity.jdBalance}</fmt:formatNumber></td>
          </tr>
          </c:if>
          
          <c:if test="${!empty one['monthCount']}">
          <!-- <tr class="main_td" style="background-color: blue"> -->
          <tr class="main_td">
          <c:set var="monthCount" value="${one['monthCount']}"></c:set>
          	<td><fmt:formatNumber pattern="0" value="${monthCount['monthNum']}" />月</td>
          	<td>&nbsp;</td>
          	<td>本期合计</td>
          	<td>&nbsp;</td>
          	<td><fmt:formatNumber pattern="0.0">${monthCount['jieCount']}</fmt:formatNumber></td>
          	<td><fmt:formatNumber pattern="0.0">${monthCount['daiCount']}</fmt:formatNumber></td>
          	<td>&nbsp;</td>
          	<td>&nbsp;</td>
          </tr>
          </c:if>

          <c:if test="${!empty one['yearCount']}">
          <!-- <tr class="main_td" style="background-color: red"> -->
          <tr class="main_td">
          <c:set var="yearCount" value="${one['yearCount']}"></c:set>
          	<td><fmt:formatNumber pattern="0" value="${yearCount['monthNum']}" />月</td>
          	<td>&nbsp;</td>
          	<td>本年累计</td>
          	<td>&nbsp;</td>
          	<td><fmt:formatNumber pattern="0.0">${yearCount['jieCount']}</fmt:formatNumber></td>
          	<td><fmt:formatNumber pattern="0.0">${yearCount['daiCount']}</fmt:formatNumber></td>
          	<td>&nbsp;</td>
          	<td>&nbsp;</td>
          </tr>
          </c:if>

        </c:forEach>
        </c:if>
        
      </table>
      <p align="center">
      	<a class="mCon_2a" href="javascript:window.print();">打印</a>
      	&nbsp;&nbsp;&nbsp;&nbsp;
      	<a class="mCon_2a"  href="${pageContext.request.contextPath}/jiedai/exportDataToExcel.action?fileName=data">导出到excel</a>
      </p>
    </div>
    </div>
</body>
</html>